Methods and apparatus to control a digital power supply

ABSTRACT

Methods and apparatus to control a digital power supply are disclosed. An example method includes controlling a power factor controller by: receiving a first current signal flowing in a first stage of the power factor controller, receiving a second current signal flowing in a second stage of the power factor controller, determining a difference between the first current signal and the second current signal, determining if the magnitude of a measured current signal is above a predetermined threshold, activating an integrator to integrate the difference when the magnitude of the measured current signal is above a predetermined threshold, and outputting a first control signal and a second control signal to the power factor controller based on the output of the integrator.

RELATED APPLICATIONS

This application claims the benefit of U.S. provisional application Ser.No. 60/939,013, filed May 18, 2007, which is hereby incorporated byreference in its entirety.

FIELD OF THE DISCLOSURE

This disclosure relates generally to control systems and, moreparticularly, to methods and apparatus to implement and/or controldigital power supplies.

BACKGROUND

A power supply is a device that receives an input signal (i.e., avoltage source, a current source, a voltage rail, etc.), converts theinput signal into an output signal (i.e., a voltage output, a currentoutput, a voltage rail, etc.) having desired characteristics, andoutputs the output signal. For example, a personal computer may includea power supply that receives a 120 volt alternating current signal andoutputs a 12 volt direct current signal. One type of power supply uses afeedback control system that adjusts the power supply based on theoutput of the power supply to ensure that the output meets the desiredcharacteristics. For example, if the desired output of the power supplyis 12 volts and the power supply is currently outputting a signal thatis 12.5 volts, the feedback control system may adjust the power supplyto reduce the output to the desired 12 volts.

One example system for implementing a feedback control system is adigital control system. A digital control system is a control system inwhich digital circuitry (e.g., a digital signal processor) completes thefeedback loop of the feedback control system. The digital circuitryreceives one or more signals of the power supply (e.g., the output ofthe power supply) and controls the power supply to cause the powersupply to output a signal having desired characteristics. The digitalcontrol system may receive control instructions from a workstation, suchas a personal computer, that control the operation of the power supply.For example, the workstation may send control instructions that specifythe desired characteristics of the output signal of the power supply.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an example system including an exampledigital power supply as disclosed herein.

FIG. 2 is a block diagram of an example digital power supply.

FIG. 3 is a schematic diagram of an example implementation of thedigital power supply of FIG. 2.

FIG. 4 is a block diagram of example processes that may be implementedby the digital signal processor (DSP) of FIG. 2 and/or FIG. 3 to controlthe two phases of the power factor controller (PFC) of FIGS. 2 and/or 3.

FIG. 5 is a block diagram of example processes that may be implementedby the DSP of FIG. 2 and/or the DSP of FIG. 3 to control the directcurrent (DC) to DC converter of FIGS. 2 and/or 3.

FIG. 6 is a waveform plot of an example timebase counter of the pulsewidth the modulator 3 of FIGS. 4 and/or 5.

FIG. 7 is a waveform plot of two example timebase counters of the pulsewidth modulator 3 of FIGS. 4 and 5.

FIG. 8 is a block diagram of an example closed loop control system forcontrolling the power stage of the digital power supply of FIG. 2 and/orFIG. 3.

FIG. 9 is a flowchart illustrating an example process for controlling apower stage.

FIG. 10 is a flowchart illustrating an example process for controllingintegration in a control system.

FIG. 11 is a flowchart illustrating an example process for modifyingcompensation of a control system based on a current signal.

FIG. 12 is a flowchart illustrating an example process for controlling acontrol system based on an input to the control system.

FIG. 13 is a flowchart illustrating an example process that may be usedto control a control system in response to a change in a referencesignal of the control system.

FIG. 14 is flowchart illustrating an example process for determining atransfer function in a closed loop control system.

FIG. 15 is a flowchart illustrating an example process for determining atransfer function of a digital control system.

FIG. 16 is an illustration of an example graphical user interfacedisplaying diagnostic and operational parameters that may be provided tousers of a digital control system.

FIG. 17 is an illustration of an example graphical user interfacedisplaying diagnostic and operational parameters that may be provided tousers of a digital control system.

FIG. 18 is an illustration of an example graphical user interfacedisplaying diagnostic and operational parameters that may be provided tousers of a digital control system.

FIG. 19 is an illustration of an example graphical user interfacedisplaying diagnostic and operational parameters that may be provided tousers of a digital control system.

FIG. 20 is a table showing the transfer function gain for the injectionlocations and the measurement locations of the closed loop controlsystem of FIG. 8.

FIG. 21 is a table showing the open loop transfer function for theinjection locations and the measurement locations of the closed loopcontrol system of FIG. 8.

FIG. 22 is a bode plot showing the open loop magnitude and phaseresponses for the four possible transfer function gains of FIG. 20.

FIG. 23 is a block diagram of an example computer 2100 capable ofexecuting the processes illustrated by the flowcharts in FIGS. 8, 9, 10,11, 12, 13, and 14 to implement the apparatus and methods disclosedherein

DETAILED DESCRIPTION

FIG. 1 is a block diagram of an example system 10 including an exampledigital power supply 12 as disclosed herein. The example system 10includes the digital power supply 12, a workstation 14, a source 16, anda digital communication system 18. In the example system 10, the digitalpower supply 12 receives control information from and sends diagnosticinformation to the workstation 14. The workstation 14 enables auser/operator to configure (e.g., set operating conditions) and/orevaluate (e.g., evaluate one or more operating conditions) the operationof the digital power supply 12. The digital power supply 12 receives asignal (e.g., 120 Volts alternating current (AC)) from the source 16,transforms the signal into an output (e.g., a voltage and/or currentsignal) that is appropriate for the digital telecommunication system 18,and outputs the output to the digital telecommunication system 18.

The digital power supply 12 of the illustrated example includes adigital signal processor (DSP) 20, a power transformation circuit 22,and a memory 24.

The DSP 20 of the illustrated example receives outputs from the powertransformation circuit 22, including the voltage output that is providedto the digital communication system 18. In response to the outputs, theDSP 20 sends control information to the power transformation circuit 22,which adjusts the operation of the power transformation circuit 22. Forexample, if the outputs of the power transformation circuit 22 indicatethat the voltage output provided to the digital communication system 18has a voltage that is below a desired voltage (e.g., a referencevoltage), the DSP 20 will detect such a situation and will send controlinformation to the power transformation circuit 22 to cause the powertransformation circuit 22 to increase the voltage output.

In addition to the outputs from the example digital communication system18, the DSP 20 receives control instructions from the workstation 14 tocontrol the operation of the DSP 20. For example, the controlinstructions may modify the reference voltage that is the target for theoutput voltage of the power transformation circuit 22 thereby causingthe DSP 20 to control the power transformation circuit 22 to achieve thenew target voltage as its output. In another example, the controlinstructions may control how aggressively the DSP 20 controls the powertransformation circuit 22 (e.g., the amount of feedback gain that isused to avoid overshoot and undershoot).

The DSP 20 of the illustrated example sends diagnostic and operationalinformation to the workstation 14 for analysis. The diagnostic andoperational information may be any information that is available to orproduced by the DSP 20. For example, the DSP 20 may send one or more ofthe outputs from the power transformation circuit 22 received by the DSP20, information stored in the memory 24 and retrieved by the DSP 20,coefficients of compensation control provided by the DSP 20, a gainand/or phase shift of the power transformation circuit 22 and/or thecombination of the DSP 20 and the power transformation circuit 22, etc.As described in further detail herein, the workstation 14 processes theinformation received from the DSP 20 and provides the processedinformation to user interfaces so that a user can monitor and/or adjustthe operation of the digital power supply 12.

The memory 24 of the illustrated example stores, among otherinformation, diagnostic and control information used by the DSP 20 andthe operating instructions (e.g., machine-readable instructions) of theDSP 20. For example, the DSP 20 may receive control instructions fromthe workstation 14, and may store the control instructions in the memory24. In addition, the DSP 20 may receive the outputs of the powertransformation circuit 22 and may store the outputs in the memory 24 forlater analysis and/or transfer to the workstation 14.

The power transformation circuit 22 of the illustrated example receivescontrol information from the DSP 20 and an input signal from the source16. The power transformation circuit 22 transforms the input signal fromthe source 16 into a desired output signal for use by the digitaltelecommunications system 18. The DSP 20 controls the transformationperformed by the power circuit 22. For example, the power transformationcircuit 22 may receive an alternating current (AC) signal from thesignal source 16 and may convert the AC signal to a direct current (DC)signal, may modify the voltage of the input signal, may modify thecurrent of the input signal, etc. While the example power transformationcircuit 22 is illustrated as providing a signal to the digitaltelecommunications system 18, the power transformation circuit 22 mayalternatively be used to provide a signal to any type of system.

The workstation 14 of the illustrated example receives diagnostic andoperational information from the DSP 20 and sends control instructionsto the DSP 20. The example workstation 14 may include a user interfaceand may accept user inputs such that a user of the system 10 may monitorand may adjust the operation of the system 10. Any type of userinterface device using any type of suitable user interface mayimplemented by the workstation 14 such as, for example, a personalcomputer, a terminal workstation, a portable computing device, an LEDdisplay, one or more user input controls (e.g., buttons, dials, etc.),etc.

The source 16 of the illustrated example provides an AC input signal tothe power transformation circuit 22. For example, the source 16 may be asignal received from a standard power outlet (e.g., 120 VAC).Alternatively, the source 16 may be any source of an input signal suchas, for example, the output of a generator, an output of a converter, anoutput of a battery, etc.

The digital telecommunications system 18 of the illustrated example isprovided as an example of a system that may receive the output signal ofthe power transformation circuit 22 of the digital power supply 12.Accordingly, because the digital telecommunications system 18 isprovided as an example, no further description of the digitaltelecommunications system 18 is provided. In alternativeimplementations, the digital telecommunications system 18 may bereplaced with any device capable of receiving an output signal from thedigital power supply 12.

For ease of explanation, the following description is divided into twosections: 1. Operation Diagrams and Flowcharts, and 2. Diagnostic andAnalysis. However, the classification of a figure into a particularsection is not intended to be limiting. For example, a figure that isdescribed in Section 1 may include diagnostic and analyticalcapabilities and features.

1. Operation Diagrams and Flowcharts

This section describes block diagrams and flowcharts associated with theimplementation and operation of a digital control system, such as thedigital power supply 12 of FIG. 1. The following description andassociated block diagrams and flowcharts illustrate an exampleimplementation of the digital power supply 12.

FIG. 2 is a block diagram of an example digital power supply 100 thatmay implement the digital power supply 12 of FIG. 1. The example digitalpower supply 100 receives an input signal from a signal source 102 andoutputs a modified version of the input signal to a load. For example,the digital power supply 100 may receive a 120 volt alternating current(V_(AC)) signal and may output a 48 volt (V) direct current (DC) signal.The digital power supply 100 of the illustrated example includes aninput filter and rectifier 104, a power factor controller (PFC) 106, acapacitor 108, a DC-to-DC converterconverter 110, a first signalconditioner unit 112, a first gate driver 114, a second signalconditioner unit 116, a second gate drive 118, a signal conditioner andisolation unit 120, third and fourth signal conditioner units 122 and124, and a DSP 126.

The input filter and rectifier 104 removes high frequency noise (e.g.,electromagnetic interference (EMI) noise) from the input signal receivedfrom the signal source 102 and converts the input signal from an ACsignal to a rectified AC signal. The input filter and rectifier 104 andimplementations thereof are described in further detail in conjunctionwith FIG. 3.

The PFC 106 of the illustrated example provides two phase power factorcorrection (e.g., using a network of capacitors and inductors asdescribed in conjunction with FIG. 3) for the example digital powersupply 100 to reduce the amount of reactive power generated by thedigital power supply 100. The PFC 106 of the illustrated exampleincludes of two interleaved AC-DC boost converters. In an exampleimplementation, the PFC 106 is driven by a single pulse width modulator(described in conjunction with FIG. 4) that counts up during a firsthalf of its period and then counts down during the second half of itsperiod. In the example implementation, a first phase of the PFC 106 isdriven high when the count is above a first threshold and a second phaseis driven high when the count is below a second threshold. Driving thePFC 106 in this manner causes the two phases of the PFC 106 to be 180degrees out of phase. The PFC 106 is described in further detail inconjunction with FIGS. 2 and 4.

The capacitor 108 creates a low pass filter to remove to ground a highfrequency portion of the signal output from the PFC 106.

The example DC-to-DC converter 110 receives the low pass filtered outputof the PFC 106 and steps-down the same to a lower voltage signal. Forexample, the DC-to-DC converter 110 may convert a signal having avoltage of 385 volts to a signal having a voltage of 48 volts. Anexample implementation and the operation of the DC-to-DC converter isdescribed below in conjunction with FIG. 3. The load of the digitalpower supply 100 is connected to the output of the DC-to-DC converter110. For example, the output of the DC-to-DC converter 110 may beconnected to the digital telecommunications device 18 that operates on aDC power signal. Further aspects related to the DC-to-DC converter 110are described below in conjunction with FIGS. 3 and 5.

The example digital power supply 100 is controlled by the example DSP126. In particular, the DSP 126 of the illustrated example receivessignals from several points in the digital power supply 100 and outputscontrol signals based on the input signals to control the PFC 106 andthe DC-to-DC converter 110 via the gate drive 114 and the gate drive118, respectively, to achieve a desired output.

The signal conditioners 112, 116, 122, and 124, and the signalconditioner and isolator 120 modify their input signals to make themappropriate for sampling by the DSP 126. For example, the signalconditioners 112, 116, 122, and 124 and the signal conditioner andisolator 120 may amplify or attenuate the input signal, filter the inputsignal, etc.

The signal conditioner 112 receives a signal output by the input filterand rectifier 104. This signal is representative of the voltage of theinput signal from the signal source 102. As described in further detailin conjunction with FIG. 3, the signal conditioner 112 may alternativelyreceive a signal intermediate to the input filter and rectifier 104. Inanother alternative, the digital power supply 100 may include anothersignal conditioner that is interposed between the DSP 126 and theintermediate point of the input filter and rectifier 104 that enablesthe DSP 126 to receive the intermediate signal and the signal at theoutput of the input filter and rectifier 104.

The signal conditioner 122 receives a signal from the PFC 106 that isrepresentative of the current from the signal source 102. As describedin further detail in conjunction with FIG. 3, additional signals fromthe PFC 106 may be conditioned and provided to the DSP 126. The signalfrom the signal conditioner 122 allows the DSP 126 to monitor thecurrent of the PFC 106 to properly control the PFC 106.

The signal conditioner 124 receives a signal representative of thevoltage of the output of the PFC 106.

The signal conditioner 116 receives a signal from the DC-to-DC converter110 that is representative of the current flowing into the DC-to-DCconverter 110.

The signal conditioner and isolator 120 receives the signal output bythe DC-to-DC converter 110 that is also the output of the digital powersupply 100. In addition to amplifying and/or filtering the signal, thesignal conditioner and isolator 120 may include an optoisolator or othertype of isolation circuitry to electrically isolate and prevent feedbackbetween the output of the digital power supply 100 and the DSP 126.While in the description of the system of FIG. 2 the signal conditionerand isolator 120 is the only signal conditioner including an isolator,alternative implementations may include isolators in some or all of thesignal conditioners 112, 116, 122, and/or 124 (e.g., any signalconditioner for any signal that crosses the DC-to-DC converter 110 mayinclude isolation circuitry).

The DSP 126 of the illustrated example controls the operation of thedigital power supply 100 through the use of the gate drive 114 and thegate drive 118. The gate drive 114 and the gate drive 118 control one ormore gates of the PFC 106 and the DC-to-DC converter 110, respectively.The gate drive 114 and the gate drive 118 are described in furtherdetail in conjunction with FIG. 3.

Returning to the DSP 126, the example DSP 126 receives the inputs fromthe signal conditioners 112, 116, 122, and 124, and the signalconditioner and isolator 120 and analyzes the signals to determine howto control properly the digital power supply 100 to provide a desiredoutput. For example, the DSP 126 may adjust the compensation of the PFC106 and the DC-to-DC converter 110 in response to input signals havingvarious frequencies, voltages, and currents; in response to output loadshaving varied characteristics; in response to changing control states;etc. After analyzing the inputs, the DSP 126 controls the gate drive 114and the gate drive 118 to adjust the output of the digital power supply100.

FIG. 3 is a schematic diagram of an example implementation of thedigital power supply 100 of FIG. 2. The example digital power supply 100of FIG. 3 is fed by a signal source 202 and includes a filter 204, aresistor 206, a relay 208, a rectifier 210, an inductor 212, an inductor214, a diode 216, a diode 218, a transistor 250, a transistor 252, acapacitor 222, a resistor 223, an operational amplifier 224, a diodeclamp 226, a diode clamp 228, a transistor 254, a transistor 256, atransistor 258, a transistor 260, a converter 230, a diode 232, a diode234, a diode 236, a diode 238, a capacitor 240, an optoisolator 242, aDSP 244, and a serial interface 246.

All of the transistors of the digital power supply 100 of theillustrated example may be implemented using metal oxide semiconductorfield effect transistors (MOSFET). Alternatively, any type of transistorthat can tolerate the voltage and/or current requirements of aparticular implementation may be used.

The filter 204 of the illustrated example, like the filter portion ofthe input filter and rectifier 104 of FIG. 2, removes high frequencynoise from the signal received from the signal source 202.

The resistor 206 and the relay 208 are configured to control inrushcurrent when the input signal is initially received from the signalsource 202. In the illustrated example, the relay is in an open stateduring initial startup (i.e., when the input signal is initiallyreceived). The resistor 206 limits the affect of the inrush current onthe other components of the digital power supply 100. The DSP 244monitors the input current via the I_(PFC) connection and the busvoltage via the V_(BOOST) connection to determine when the inrushcurrent has settled. After the inrush current has settled, the DSP 244closes the relay 208 to bypass the resistor 206 for normal operation.The output of the resistor 206 and/or the relay 208 is input to DSP 244and is labeled V_(AC) (as illustrated by the input connector).Alternatively, the DSP 244 may automatically close the relay 208 whenthe DSP 244 is turned on. For example, if the time required for the DSP244 to activate is long enough that inrush current can be assumed tohave settled, the DSP 244 can automatically close the relay whenever itis activated.

The rectifier 210 rectifies the input signal. The example rectifier 210of the illustrated example is a full wave rectifier. However, any typeof rectifier suitable for a desired implementation may be used. Thecapacitor 220 of the illustrated example smoothes the output of therectifier 210.

The inductor 214, the diode 218, and the transistor 250 implement afirst phase of a PFC similar to the PFC 106 of FIG. 2. The inductor 212,the diode 216, and the transistor 252 implement a second phase of thePFC similar to the PFC 106 of FIG. 2. Using two phases for the PFC 106causes the ripple current of the inductor 212 and the ripple current ofthe inductor 214 to cancel each other out. The output current of the twophases of the PFC 106 is the sum of the current in the diode 216 and thediode 218, which is supplied to the capacitor 222. The DSP 244 of theillustrated example is configured to operate the two phases of the PFC106 SO that they are 180 degrees out of phase. As described in furtherdetail in conjunction with FIG. 4, the transistor 250 is biased on whenthe transistor 252 is biased off, and vice versa.

The transistors 254, 256, 258 and 260 allow the DSP 244 to modulate thephase between the signal supplied to the converter 230 in response to achange in the load of the digital power supply 100, as measured by theoutput voltage measured at label V_(OUT).

The converter 230 receives the signals from the transistors 254, 256,258 and 260 and steps down the voltage. For example, the converter 230may step down the voltage from 385 volts to 48 volts. In the exampleimplementation of FIG. 3, the transistors 254, 256, 258 and 260 are usedto convert the DC signal received from the PFC 106 into an AC signal.The example converter 230 has a differential winding to cause the highvoltage input to be stepped down to a low voltage signal.

The AC signal having the stepped-down voltage at the output of theconverter 230 is fed to an output rectifier implemented by diode 232,diode 234, diode 236, and diode 238, which collectively convert the ACsignal from the converter 230 secondary to a DC signal. The rectifiedsignal is then low pass filtered by the inductor 239 and the capacitor240 before being output to the load attached to the digital power supply100.

The DSP 244 of the illustrated example receives the output voltageV_(OUT) as feedback via the optoisolator 242. The optoisolator 242electrically isolates the DSP 244 from the output of the digital powersupply 100. By monitoring the output voltage V_(OUT), the DSP 244 cancontrol the digital power supply 100 to provide a desired output voltagehaving desired characteristics. For example, the DSP 244 can compare theoutput voltage to a reference voltage. If the DSP 244 determines thatthe output voltage is lower than the reference voltage, the DSP 244 cansend control information (e.g., the signals ePWM2A, ePWM2B, ePWM3A, andePWM3B) to the DC-to-DC converter 110 to cause an increase in the outputvoltage.

The DSP 244 of the illustrated example receives multiple inputs fromvarious points throughout the digital power supply 100. The inputsinclude voltage readings from V_(AC), V_(RECT), V_(BOOST), and V_(OUT)and current readings from I_(PFC), I_(phA), I_(phB), and I_(PRI). TheI_(PFC) signal is obtained by measuring the voltage across the resistor223, which acts as a sense resistor, using the operational amplifier224. The I_(phA) and I_(phB) signals represent the current flowing intothe transistor 250 and the transistor 252, respectively. The I_(phA) andI_(phB) signals may be calculated by dividing the voltage measured byRds on the associated transistor while the transistor is conducting. TheI_(phΛ) and I_(phB) signals pass through the diode clamp 226 and thediode clamp 228, respectively. The I_(PRI) signal is representative ofthe current flowing from the PFC 106 to the DC-to-DC converter 110 ofthe digital power supply 100.

Based on the input signals, the DSP 244 controls the components of thePFC 106 (e.g., transistor 250 and transistor 252) and the components ofthe DC-to-DC converter 110 (e.g., transistor 254, transistor 256,transistor 258, and transistor 260). The control of the PFC 106 isdescribed in further detail in conjunction with FIG. 4. The control ofthe DC-to-DC converter 110 is described in further detail in conjunctionwith FIG. 5.

The serial interface 246 of the illustrated example provides acommunications interface to the DSP 244. For example, a serial port of apersonal computer may be attached to the serial interface 246, may sendinstructions to the DSP 244, and may receive information about the DSP244 via the serial interface 246. The serial interface 246 may be anytype of communication interface such as, for example, a universal serialbus interface, a parallel communication interface, a recommendedstandard 232 (RS-232) interface, a serial communication interface (SCI),an inter-integrated circuit (I²C) interface, etc.

A. PFC Control

FIG. 4 is a block diagram of functionality that may be implemented bythe DSP 126 of FIG. 2 and/or the DSP 244 of FIG. 3 to control the twophases of the PFC 106 of FIGS. 2 and/or 3. The example functionalityincludes three feedback loops 302, 304, 306. The average output DCvoltage is regulated by an outer voltage loop 302, which has a slowresponse. An inner current loop 304 which has a fast response shapes thecurrent to match the input voltage waveform, thereby maintaining a highpower factor at the mains input. In addition to these two loops, a thirdcurrent share loop 306 helps to maintain equal current through thetransistors 250 and 252.

To develop controlled PWM gate drive signals (PWM1A and PWM 1 B), theexample functionality of FIG. 4 first compares the digitized bus voltageV_(BOOST) to a desired reference bus voltage Vref. The bus voltage Vrefis received from a reference voltage source (not shown) or determinedfrom a system parameter. The difference signal Verr is then fed into avoltage loop compensator G1. The example voltage loop compensator G1includes a two-pole, two-zero difference equation and is implemented asan assembly language macro on the DSP 244. The digitized output of thevoltage loop compensator G1, labeled Va in FIG. 4, is multiplied byVrect (V_(AC) after a DC offset is subtracted and the signal isrectified by the rect(abs) block), Vb (Vrect after Infinite ImpulseResponse (IIR) low pass filtering to get the average input voltage,squaring, and inverting to apply feedforward compensation), andmultiplier gain, Km, to generate the reference current command, Iref,for the inner current loop. Feedforward compensation is requiredbecause, for a given fixed load, it is desired to have the PFC provideconstant power regardless of the input RMS voltage. Multiplier gain, Km,is adjusted such that at the minimum input voltage, reference current,Iref, is at its maximum when the PFC converter delivers the maximumload. In the illustrated example, the reference current command, Iref,has the shape of a rectified sinewave and its amplitude is such that itmaintains the output DC voltage at a reference level, Vref, regardlessof variation in load and fluctuation in line voltage.

In the example functionality shown in FIG. 4, the reference currentcommand, Iref, is compared to the input signal, I_(PFC). The differencebetween the reference current command, Iref, and the input signal,I_(PFC), is fed into regulator G2 to generate the unadjusted PWM dutyratio command for the PFC switches. The output of the regulator G2 issignal PWM1A, which is output to control the transistor 250.

To develop the control signal for transistor 252, the current throughthe transistor 252, I_(phB), is filtered by a finite impulse response(FIR) filter 308 and is subtracted from the output of a FIR filter 310fed by current though the transistor 250 I_(phA) to create the currenterror signal Ecs. The current error signal Ecs is then fed to thecurrent share controller G3. The output of the current share controllerG3 is then added to the output of the regulator G2 to generate thesignal PWM1B, which is output to control the transistor 252.

While the example implementation of FIG. 4 indicates that the output ofintegrator G3 is added to only one phase of the control system controlsignals, the output of the integrator may alternatively be added to onephase and subtracted from another (e.g., the output of the current sharecontroller G3 may be added to the gate drive signal PWM1B and subtractedfrom the gate drive signal PWM1A).

Further, while the implementation of FIG. 4 is configured for a twophase control system (e.g., phase A and phase B of the control system100 of FIG. 3), the implementation of FIG. 4 may be modified to supporta control system having any number of phases. For example, an average ofthe current in all phases can be computed and the difference between thecurrent in each phase and the average current can be integrated and usedto adjust each phase's control signal.

B. DC-to-DC Converter Control

FIG. 5 is a block diagram of functionality that may be implemented bythe DSP 126 of FIG. 2 and/or the DSP 244 of FIG. 3 to control the DC toDC converter 110 of FIGS. 2 and/or 3. In the example functionality, theoutput voltage V_(out) of the digital power supply 100 is compared tothe reference voltage Vref The difference signal Verr is then fed tovoltage loop controller G4. The output of the voltage loop controller G4is then fed to the phase shift modulator, Pm. The phase shift modulator,Pm, translates the output of the voltage loop controller G4 into thephase-shift command information needed by hardware PWM components thatcontrol the transistors 254, 256, 258 and 260.

C. PWM Signals

FIG. 6 is a graph of an example timebase counter of pulse widthmodulator PWM1 (i.e., PWM1A and PWM1B of FIG. 4). The counter operatesin an up/down manner to, in one example, generate a symmetrical trianglewave. As shown by gate drive control plots 504, gate drive A (e.g.,PWM1A) is activated when the count 502 rises through a comparator A(CMPA) threshold and gate drive A is deactivated when the count 502falls through a CMPA threshold. Gate drive B (e.g., PWM1B) is activatedwhen the count 502 falls through a comparator B (CMPB) threshold andgate drive B is deactivated when the count 502 rises through the CMPBthreshold. Accordingly, the gates are guaranteed to be driven 180degrees out of phase.

The CMPA and CMPB thresholds are established based on the required dutycycle (i.e., power stage control effort) of the PFC 106 of FIG. 2 and/orFIG. 3. The required compensation duty cycle may be calculated by theDSP 126 and/or DSP 244. The threshold CMPA is set to a value that isequal to the maximum value of the counter minus one half of the requiredduty cycle (e.g., a threshold of 90% of the maximum value of the counterwould result in a duty cycle of 20%). The threshold CMPB is set to avalue that is equal to one half of the duty cycle (e.g., 10% of themaximum value of the counter for a duty cycle of 20%). Setting thethresholds in this manner causes the signals PWM1A and PWM1B to becentered on the high and the low peaks of the counter valuesrespectively. Accordingly, the signals will be exactly 180 degrees outof phase with each other and the pulse widths for the two phases will bethe same.

Generating the PWM1A and PWM1B signals using CMPA and CMPB may cause thepulses of the PWM1A and PWM1B signals to be centered on a fixed point inthe period of the PWM1A and PWM1B signals, respectively. The trianglewave of the counter (i.e., an up/down counter) results in pulse widthmodulation occurring on both the leading edges and trailing edges of thepulses and causes the time between leading edges and falling edges toremain constant. Generating the PWM1A and PWM1B signals in this mannerminimizes the harmonics of the PWM1A and PWM1B signals output by thepulse width modulator PWM1 because the harmonics of the outputs of thepulse width modulator PWM1 are affected by the timing between thecenters of the pulses.

FIG. 7 is a graph of two timebase counters (timebase 2 and timebase 3)of the pulse width modulators PWM2 (i.e., generating signals ePWM2A andsignal ePWM2B of FIG. 5) and PWM3 (i.e., generating signal ePWM3A andsignal ePWM3B of FIG. 5) of the functionality of FIG. 5. Unlike thecounters in FIG. 6, the counters of FIG. 7 operate based on ramp signals(i.e., count from zero to their maximum value and then restart countingat zero). The transistor 254 is activated by PWM2A when the count oftimebase 2 is zero and is deactivated when the count rises through theCMPA threshold. The ePWM2B signal is a shifted version of the ePWM2Asignal. The signal is shifted by a deadband timing unit based on theload applied to the digital power supply 100. The transistor 258 isactivated by the ePWM3A signal when the count of timebase 3 is zero andis deactivated when the count rises through the CMPA threshold. ThePWM3B signal is a shifted version of the PWM3A signal. The signal isshifted by the deadband timing unit based on the load applied to thedigital power supply 100. The phase difference between PWM2 (e.g.,signal ePWM2A and signal ePWM2B) and PWM3 (e.g., signal ePWM3A andsignal ePWM3B) controls the amount of power delivered to the bridge 230of the DC-to-DC converter 110.

D. Closed Loop Control

FIG. 8 is a block diagram of an example closed loop control system 700for controlling the components of the digital power supply 100 of FIG. 2and/or FIG. 3. The example control system 700 includes a digitalcontroller 702 and a power stage G(z). In the illustrated example, thedigital controller 702 samples the output of the power stage G(z) y′ andoutputs a control signal u′ that controls the operation of the powerstage G(z).

The example power stage G(z) represents functionality that may beimplemented by PFC 106, DC-to-DC converter 110, or any other controlelement that receives a control signal and generates an output signal.

The digital controller 702 includes an analog to digital converter (ADC)704, a digital compensator H(z) and a pulse width modulator (PWM) 706.The ADC 704 receives the output of the power stage G(z) y′ and convertsthe signal from an analog signal to a digital signal by periodicallysampling the input signal. For example, the ADC 704 may sample the inputsignal once every 10 microseconds (i.e., a frequency of 100 kHz). Theconverted digital signal is labeled y.

The converted digital signal y is subtracted from a reference signal rto create the error signal e. For example, if converted signal yrepresents a voltage signal and reference signal r represents areference voltage, error signal e will be the voltage difference betweenthe converted signal y and the reference signal r. Error signal e isadded to input signal d1 to generate signal x. Input signal d1 may beany input signal that is injected into the error signal e. The inputsignal d1 is described in further detail below.

Signal x is input to the digital compensator H(z). The digitalcompensator H(z) generates a control signal c based on the signal x. Forexample, the digital compensator H(z) may be any type of digitalcontroller. In the illustrated example, the digital compensator H(z) isprogrammed to generate a control signal that is predicted to eventuallyeliminate the error between the converted signal y and the referencesignal r (represented by the error signal e).

The control signal c is added to the input signal d2 to generate thecontrol signal u. Input signal d2 may be any input signal that isinjected into the control signal c. The input signal d2 is described infurther detail below. The control signal u is input to the PWM 706. ThePWM 706 pulse width modulates the control signal u to generate thecontrol signal u′. As previously described, the control signal u′ isinput to the power stage G(z) to control the operation of the powerstage G(z).

The closed loop control system 700 may be analyzed to determine atransfer function for various parts of the system. An example processfor determining a transfer function is described in conjunction withFIG. 15. The open loop transfer function that is used in the process ofFIG. 15 may be calculated by first determining the basic systemequations. For the example system of FIG. 8, the basic equations for theclosed loop control system 700 are:y=Guu=c+d ₂c=Hx   (1)x=e+d ₁e=r−y

Solving for y yields:

$\begin{matrix}{y = {{\frac{GH}{1 + {GH}}r} + {\frac{GH}{1 + {GH}}d_{1}} + {\frac{G}{1 + {GH}}d_{2}}}} & (2)\end{matrix}$

Solving for u yields:

$\begin{matrix}{u = {{\frac{H}{1 + {GH}}r} + {\frac{H}{1 + {GH}}d_{1}} + {\frac{1}{1 + {GH}}d_{2}}}} & (3)\end{matrix}$

Solving for c yields:

$\begin{matrix}{c = {{\frac{H}{1 + {GH}}r} + {\frac{H}{1 + {GH}}d_{1}} - {\frac{GH}{1 + {GH}}d_{2}}}} & (4)\end{matrix}$

Solving for x yields:

$\begin{matrix}{x = {{\frac{1}{1 + {GH}}r} + {\frac{H}{1 + {GH}}d_{1}} - {\frac{G}{1 + {GH}}d_{2}}}} & (5)\end{matrix}$

Solving for e yields:

$\begin{matrix}{e = {{\frac{1}{1 + {GH}}r} - {\frac{GH}{1 + {GH}}d_{1}} - {\frac{G}{1 + {GH}}d_{2}}}} & (6)\end{matrix}$

Accordingly, the there are four possible transfer gains for the closedloop control system 700:

$\begin{matrix}{\frac{GH}{1 + {GH}},\frac{G}{1 + {GH}},\frac{H}{1 + {GH}},{{and}\mspace{14mu}\frac{1}{1 + {GH}}}} & (7)\end{matrix}$

The applicable transfer gain depends on the location at which the inputsignal (e.g., input signal d1 or input signal d2) is injected and thelocation at which the response signal is measured.

The open loop transfer function is G(f)H(f) where G(f) is the frequencyresponse of the power stage G(z) and H(f) is the frequency response ofthe digital compensator H(z).

The equation for the open loop gain includes H(f) when the injectedinput signal is input on one side of the digital compensator H(z) andthe response signal is measured on the other side of the digitalcompensator H(z). Such a combination of injection and responsemeasurement adds computational complexity, but can be handled using thefollowing equation:

$\begin{matrix}\begin{matrix}{z = {\exp\left( {{j2\pi}\; f_{meas}T_{s}} \right)}} \\{z = {{\cos\left( {2\pi\; f_{meas}T_{s}} \right)} + {{jsin}\left( {2\pi\; f_{meas}T_{s}} \right)}}} \\{{H\left( f_{meas} \right)} = \frac{{b_{0}z^{2}} + {b_{1}z} + b_{2}}{z^{2} + {a_{1}z} + a_{2}}}\end{matrix} & (8)\end{matrix}$

FIG. 20 is a table showing the transfer gains for the injectionlocations and the measurement locations of the closed loop controlsystem 700. FIG. 21 is a table showing the open loop transfer functionG(f)H(f) for the injection locations and the measurement locations ofthe closed loop control system 700.

When injecting the input signal of a predetermined frequency into theclosed loop control system 700, it may be desirable to choose aninjection point and measurement point combination that has desirableresponse characteristics at the predetermined frequency. For example, aresponse may have a very small magnitude at low frequency and a highmagnitude at high frequency. Accordingly, it would be desirable to use acombination with a high magnitude at low frequency when injecting a lowfrequency signal.

FIG. 22 is a bode plot showing the open loop magnitude and phaseresponses for the four possible transfer gains referenced in equation 7.The response for gain

$\frac{GH}{1 + {GH}}$is labeled M04, the response for gain is

$\frac{G}{1 + {GH}}$is labeled M08, the response for gain

$\frac{H}{1 + {GH}}$is labeled M06, and the response for gain

$\frac{1}{1 + {GH}}$is labeled M02. As shown in FIG. M, response M02 and response M08 havelow magnitude responses at low frequencies and response M04 and responseM08 have low magnitude responses at high frequencies. Response M06 has aresponse greater than zero at both low and high frequencies.

E. Control Processes

FIGS. 9-15 illustrate flowcharts representative of example processesthat may be executed to implement the digital power supply 100illustrated in FIGS. 2 and 3. The example processes of FIGS. 9-15 may beimplemented using machine-readable instructions executed by a processor,a controller, and/or any other suitable processing device. For example,the example processes of FIGS. 9-15 may be embodied in codedinstructions stored on a tangible medium such as a flash memory, or RAMassociated with a processor (e.g., a DSP). Alternatively, some or all ofthe example processes shown in the flowcharts of FIGS. 9-15 may beimplemented using an application specific integrated circuit (ASIC), aprogrammable logic device (PLD), a field programmable logic device(FPLD), discrete logic, hardware, firmware, etc. Also, some or all ofthe example processes of FIGS. 9-15 may be implemented manually or ascombinations of any of the foregoing techniques, for example, acombination of firmware and/or software and hardware. Further, althoughthe example processes of FIGS. 9-15 are described with reference to theflowcharts of FIGS. 9-15, persons of ordinary skill in the art willreadily appreciate that many other methods of implementing the exampledigital power supply 100 illustrated in FIGS. 9-15 may be employed. Forexample, the order of execution of the blocks may be changed, and/orsome of the blocks described may be changed, eliminated, sub-divided, orcombined. Additionally, persons of ordinary skill in the art willappreciate that the example processes of FIGS. 9-15 be carried outsequentially and/or carried out in parallel by, for example, separateprocessing threads, processors, devices, circuits, etc.

FIG. 9 is a flowchart illustrating an example process for controlling apower stage (e.g., the PFC 106 of FIGS. 2 or 3). The example process ofFIG. 9 begins when a digital signal processor (e.g., the DSP 126 of FIG.2 or the DSP 244 of FIG. 3) initializes a pulse width modulator (e.g.,pulse width modulator PWM1) to count up for a first half of its periodand count down for a second half of its period (e.g., to count as atriangle wave) (block 802). The digital signal processor then calculatesa required duty cycle for the first phase of a power factor controller(e.g., the PFC 106 of FIG. 2 or FIG. 3) (block 804). The required dutycycle is divided in half to determine a half duty cycle (block 806).Then, the digital signal processor sets a first threshold (e.g.,threshold CMPA) to be 100% minus the half duty cycle percent of themaximum value of the pulse width modulator (block 808). The digitalsignal processor sets a second threshold (e.g., threshold CMPB) to thehalf duty cycle percent of the maximum value of the pulse widthmodulator (block 810). For example, if the required duty cycle iscalculated to be 20%, the first threshold would be set to 90% of themaximum value of the pulse width modulator and the second thresholdwould be set to 10% of the maximum value of the pulse width modulator.

F. Integrator Control

FIG. 10 is a flowchart illustrating an example process for controllingintegration in a control system (e.g., the firmware illustrated in FIG.4). The current integration loop illustrated in FIG. 4 comprises thecurrent input I_(phA), the current input I_(phB), the FIR filter 308,the FIR filter 310, and the current share controller G3 of FIG. 4. Whena control system is operating, most current draw occurs when the inputsignal is near the peaks of the AC voltage (e.g., a positive voltagepeak and a negative voltage peak).

For example, FIG. 16 illustrates an example plot of PFC current 1514 andreference current 1518. As shown in the example, the PFC current 1514matches very closely to the reference current 1518 and high amplitudes.However, at low amplitudes the PFC current 1514 and the referencecurrent 1518 do not match.

In the example process illustrated in FIG. 10, an integrator (e.g., thecurrent share controller G3) is operated only when the input voltage(e.g., input voltage VAC) is outside of a predetermined threshold. Forexample, the integrator may only run when the input AC voltage isgreater than 5 volts or less than −5 volts. In an alternativeimplementation, the difference between the currents of each phase of thecontroller (e.g., the difference between IphB and IphA) may bemultiplied by the measured input voltage to give greater weight to thecurrent difference that occurs when the input voltage is at its peaks.

The process of FIG. 10 begins when a digital signal processor (e.g., thedigital signal processor 126 of the digital control system 100 of FIG. 2or the digital signal processor 244 of the digital control system 100 ofFIG. 3) receives an input voltage signal (e.g., the input voltage signalV_(AC)) (block 1102). The digital signal processor determines if theinput voltage signal is in a desired range (e.g., outside of a desiredthreshold) (block 1104). If the digital signal processor determines thatthe input voltage is not in the desired range (block 1104), the digitalsignal processor deactivates an integrator (e.g., the current sharecontroller G3 of FIG. 4) (block 1110). In other words, the integratorstops accumulating the input and continues to output the lastaccumulated value. Control then proceeds to block 1108, which isdescribed below.

If the digital signal processor determines that the input voltage signalis in the desired range (block 1104), the digital signal processoractivates an integrator that accumulates the difference between theinput signals of the phases of a control system (e.g., the current sharecontroller G3, which integrates the difference between thecurrent_(IphB) and the current_(IphA)) (block 1106). The output of theintegrator is added to a phase control signal for a control system(e.g., in the firmware of FIG. 4, the output of the current sharecontroller G3 is added to the gate drive signal PWM1B) (block 1108).Control then returns to block 1104 to continue monitoring the inputvoltage signal.

G. Compensation Control

FIG. 11 is a flowchart illustrating an example process for modifyingcompensation of a control system (e.g., the digital power supply 100 ofFIGS. 2 and/or 3) based on a current signal (e.g., a currentrepresentative of current flowing through a load of the control system).Accordingly, the control system can adjust for changes in a load thatresult in a change in load current. The example process of FIG. 11 isconfigured to gradually adjust coefficient values and to adjustcoefficient values sequentially.

The example process of FIG. 11 begins when a digital signal processor(e.g., the digital signal processor 126 of FIG. 2 or the digital signalprocessor 244 of FIG. 3) initializes the control system (e.g., a digitalpower supply) (block 1202). For example, the digital signal processormay cause the control system to receive and input signal and provide anoutput signal based on the input signal. The digital signal processorthen receives a signal representative of the current flowing through aload of the digital signal processor (block 1204). The digital signalprocessor then determines if the received signal indicates that the loadcurrent is in a different state than a previous determination (block1206). For example, the digital signal processor may determine if thevalue of the load current has substantially changed, if the peak valuesof the load current have substantially changed, if the average of theload current has substantially changed, etc. If the load current has notsubstantially changed (block 1206), control returns to block 1204 tocontinue monitoring the current.

If the load current has substantially changed (block 1206), the digitalsignal processor retrieves optimal controller coefficient values for thenew state from a table of coefficient values (block 1208). For example atable of optimized coefficients may be pre-loaded onto memory associatedwith the digital signal processor. The table of optimized coefficientsmay include desirable coefficients (e.g., coefficients for the voltageloop compensator G4 of FIG. 5 and/or the regulator G2 of FIG. 4) forsome or all of the possible values for the current signal. For example,the table may include a first set of coefficients for a first range ofcurrent values and a second set of coefficients for a second range ofcurrent values. The digital signal processor then modifies a firstcoefficient by changing the first coefficient to be a first step closerto the value retrieved from the table of coefficient values (block1210). For example, the digital signal processor may determine thedistance between the current coefficient value and the retrieved valueand adjust the first coefficient one half the distance to the retrievedvalue. For example, if the first coefficient is currently set to 0.25and the table of coefficients indicates that the first coefficientshould be changed to 1.0, the digital signal processor will change thefirst coefficient to be 0.62.5.

Then, the digital signal processor modifies a next coefficient bychanging the next coefficient to be a first step closer to a valueretrieved from the table of coefficient values (block 1212). The firststep used to modify the first coefficient and the first step used tomodify the second coefficient may be the same or different depending onthe implementation. The digital signal processor then determines ifthere are further coefficients to be modified (block 1214). If there arefurther coefficients to be modified (block 1214), control returns toblock 1212 to continue modifying coefficients.

If there are no further coefficients to be modified (block 1214), thedigital signal processor modifies the first coefficient to be equal tothe value retrieved from the table of coefficient values (block 1216).The digital signal processor then modifies the next coefficient to beequal to the value retrieved from the table of coefficient values forthe respective coefficient (block 1218). The digital signal processorthen determines if there are further coefficients to be modified (block1220). If there are further coefficients to be modified (block 1220),control returns to block 1218 to continue modifying coefficient values.If there are no further coefficients to be modified, the process of FIG.11 is completed.

While the example process of FIG. 11 is configured to use a singleintermediate step of coefficient values, any number of steps may beused. For example, in an alternative implementation, a coefficient maybe stepped from an initial value to a first intermediate value, from thefirst intermediate value to a second intermediate value, and from thesecond intermediate value to a final value.

FIG. 12 is a flowchart illustrating an example process for controlling acontrol system based on an input to the control system. The exampleprocess of FIG. 12 is configured to enable the control system to adjustsystem coefficients so that the control system can be optimized tofunction under varying input signal conditions (e.g., input signalshaving various frequencies, voltages, currents, etc.).

The process of FIG. 12 begins when a digital signal processor (e.g., thedigital signal processor 126 of FIG. 2 or the digital signal processor244 of FIG. 3) receives a signal representative of an input signal to acontrol system (e.g., the digital power supply 100 of FIGS. 2 and/or 3)(block 1302). The digital signal processor then measures the inputsignal to determine characteristics of the input signal (block 1304).For example, the digital signal processor may determine a voltage andfrequency of the input signal.

The digital signal processor then determines desired coefficients for adigital signal compensator of the control system (e.g., the firmwareillustrated in FIGS. 4 and/or 5) based on the characteristics of theinput signal (block 1306). For example, the digital signal processor mayinclude a table of optimized values that corresponds to expected signalcharacteristics. Alternatively, any other method of determiningoptimized coefficients may be used.

The digital signal processor then applies the desired coefficients tothe digital signal compensator (block 1308). Then, the digital signalprocessor initializes the control system (block 1310). For example, theinput signal may be measured before any output signal is provided by thecontrol system. Accordingly, once desired coefficients for the controlsystem are determined and applied, the control system may be operated toprovide an output signal. The process of FIG. 12 then completes.

H. Control in Response to a Reference Change

FIG. 13 is a flowchart illustrating an example process that may be usedto control a control system in response to a change in a referencesignal of the control system. The example process of FIG. 13 isconfigured to gradually adjust a reference signal to a changed value,rather than changing a reference signal instantly or almost instantly.

The process of FIG. 13 begins when a digital signal processor (e.g., thedigital signal processor 126 of FIG. 2 or the digital signal processor244 of FIG. 3) detects a change in a reference value or signal used in acontrol system (e.g., the digital power supply 100 of FIGS. 2 and/or 3)(block 1402). For example, reference voltage Vref may be changed from afirst value to a second value. In an implementation where the referencevoltage Vref is a value stored in a register, the value may be changedby a user using a user interface to modify the value. In animplementation where the reference voltage Vref is a signal received bya digital signal processor, the reference voltage Vref may be changed bymodifying the system that supplies the reference voltage.

In response to determining that the reference voltage has changed (block1402), the digital signal processor retrieves a voltage profile for thereference voltage change (block 1404). For example, the digital signalprocessor may store a voltage profile associated with various expectedvalues for the reference voltage. Alternatively, the digital signalprocessor may calculate a voltage profile using a predetermined formula.For example, a voltage profile may be generated by determining a numberof values between the current reference voltage and the updated voltagereference (e.g., for a current reference voltage of 1 Volt and anupdated reference voltage of 5 Volts, the following values may be used:1.8 Volts, 2.6 Volts, 3.4 Volts, 4.2 Volts, and 5 Volts). In anotherexample, a voltage profile may start by accelerating slowly, speedingup, and then gradually approaching a target value (e.g., for a currentreference voltage of 1 Volt and an updated reference voltage of 5 Volts,the following values may be used: 1.2 Volts, 1.4 Volts, 1.6 Volts, 1.8Volts, 2.5 Volts, 3.2 Volts, 3.9 Volts, 4.2 Volts, 4.4 Volts, 4.6 Volts,4.8 Volts, 4.9 Volts, 5 Volts).

After retrieving (or determining) the voltage profile, the digitalsignal processor steps through the voltage profile (block 1406). Forexample, the digital signal processor may apply a first value of thevoltage profile, delay for 1 second, apply a next value of the voltageprofile, delay for 1 second, etc. Once the digital signal processor hasstepped through the voltage profile, the control system returns tooperating in a normal mode (block 1408). In other words, once thevoltage profile has been applied, the voltage reference will be at theupdated voltage reference value and the control system will operate bybasing an output voltage on the voltage reference. The process of FIG.13 is then completed.

2. System Diagnostics and Analysis

The description in the following section is focused on techniques fordiagnosing and analyzing the operation of a digital control system, suchas the digital power supply 12 of the system 10 of FIG. 1. Thetechniques may be used to diagnosis and analyze the operation of thediagrams and flowcharts of section 1.

FIG. 14 is flowchart illustrating an example process for determining atransfer function in a closed loop control system (e.g., the exampleclosed loop control system 700 of FIG. 8). The example process of FIG.14 begins when an input signal having a predetermined frequency isinjected into the closed loop control system (block 902). For example,an input signal may be injected as input signal d1 or as input signald2. The input signal may be a sine wave, a cosine wave, or any othertype of signal. The input signal may be injected, for example, by adigital signal processor (e.g., the digital signal processor 126 of FIG.2 and/or the digital signal processor 244 of FIG. 3). In an exampleimplementation, the digital signal processor may include a table ofpre-calculated values for the input signal.

After the input signal is injected, a signal in the control system issampled to determine the response (block 904). For example, in thecontrol system 700 of FIG. 8, the input signal may be injected as inputsignal d2 and the control signal c may be sampled or any other desiredcombination may be used. The response signal is discrete Fouriertransformed at the predetermined frequency of the input signal (block906). The definition of a discrete Fourier transform is:

$\begin{matrix}{K_{k} = {\sum\limits_{n = 0}^{N - 1}{\left( V_{n} \right)\left( {{\cos\left( {2\pi\frac{k}{N}n} \right)} - {{jsin}\left( {\frac{k}{N}n} \right)}} \right)}}} & (9)\end{matrix}$

where K_(k) is the discrete Fourier transform of the kth harmonic of theinput signal, V_(n) is the input signal, and N is the number of samples.Accordingly, the real and imaginary magnitude of the kth harmonic of asignal can be calculated by multiplying the signal by a cosine and sineat the harmonic frequency. According to the illustrated example, thesine and cosine sequences have already been determined for injecting theinput signal.

One of the characteristics of the discrete Fourier transform formula isthat only harmonics of the measurement interval are calculated. Bylimiting the measurement frequencies to harmonics there will always bean integer number of cycles over the measurement interval. When afrequency is chosen that generates a non-integer number of cycles overthe measurement interval, the discrete Fourier transform algorithm willspread the signal energy over several frequencies, resulting in an errorin the calculated magnitude. This phenomenon is called “leakage”.Leakage can be compensated for by applying a window function to themeasurement signal before multiplying by the sine and cosine referencesequences. An example window function is the triangular window:

$\begin{matrix}{{w(n)} = {\frac{2}{N}\left( {\frac{N}{2} - {\frac{N - 1}{2}}} \right)}} & (10)\end{matrix}$

Therefore, an example algorithm for measurement frequencies that are notharmonics is:

$\begin{matrix}{K_{meas} = {\sum\limits_{n = 0}^{N - 1}{\left( {{w(n)}v_{n}} \right){\exp\left( {{j2\pi}\;\frac{F_{meas}}{F_{s}}n} \right)}}}} & (11)\end{matrix}$

This equation implements a matched filter, which is not technically adiscreet Fourier transform.

Alternatively, the measurement interval may be adjusted to guarantee aninteger number of since cycles:

$\begin{matrix}\begin{matrix}{K_{meas} = {\sum\limits_{n = 0}^{N - 1}{\left( v_{n} \right){\exp\left( {{- {j2\pi}}\;\frac{F_{meas}}{F_{s}}n} \right)}}}} \\{N = {{round}\left( {k\;\frac{F_{s}}{F_{meas}}} \right)}}\end{matrix} & (12)\end{matrix}$

where k is the number of cycles desired in the measurement interval.

Returning to FIG. 14, after the discrete Fourier transform oralternative transformation is performed, the magnitude and phase of theresponse signal is determined from the result of the discrete Fouriertransform (block 908). Then, the equation for the open loop response forthe closed loop control system and the combination of the injectionpoint of the input signal and the measured response signal is determined(block 910). For example, as previously described, FIG. 21 illustratesthe example equations for the open loop responses for the input andmeasurement points of the closed loop control system 700 of FIG. 8.According to FIG. 21, the equation for the open loop response for theclosed loop control system 700 with the input signal injected at d2measured by sampling the control signal c is:

$\begin{matrix}{{GH} = \frac{- c}{c + d_{2}}} & (13)\end{matrix}$

Using the determined magnitude and phase response and the determinedequation for the open loop response of the system, the open loopresponse is calculated (block 912). For example, using equation 13 anddefining d2 to be real (i.e., having no imaginary component), the openloop response is calculated according to:

$\begin{matrix}{{GH} = {{- \frac{c_{r}^{2} + c_{i}^{2} + {c_{r}d_{r}}}{c_{r}^{2} + c_{i}^{2} + {2c_{r}d_{r}} + d_{r}^{2}}} - {j\;\frac{c_{i}d_{r}}{c_{r}^{2} + c_{i}^{2} + {2c_{r}d_{r}} + d_{r}^{2}}}}} & (14)\end{matrix}$

where c_(r) is the real component of the measured response, c_(i) is theimaginary component of the measured response, and d_(r) is the realcomponent of the injected input signal. The magnitude of the gain andthe phase shift may be plotted on a bode plot. For example, a graphicaluser interface (GUI) may be generated to display the bode plot to auser.

To determine the response of the system at a second frequency, the inputsignal is stepped to the next frequency or an alternative frequency(block 914). Then, control returns to block 902 to inject the signal atthe next frequency and sample the response. Once a desired number ofresponse values have been determined, the process of FIG. 14 ends.

While FIG. 14 illustrates a process in which the open loop response iscalculated as closed loop data is collected at multiple frequencies, theopen loop response may alternatively be calculated after all closed loopdata has been collected. In other words, the process would loop throughblock 916 after block 908 until all closed loop values have beencollected. Then, blocks 910 and 912 would be executed to calculate theopen loop response. The calculation of the open loop response may beperformed by a DSP or any other system to which the data can be sent.

FIG. 15 is a flowchart illustrating an example process for determining atransfer function of a digital control system (e.g., the example closedloop control system 700 of FIG. 8). The process of FIG. 15 begins whenthe digital signal processor (e.g., the digital signal processor 216FIG. 2 or the digital signal processor 244 of FIG. 3) selects a firstlocation to inject an input signal in a control loop of the digitalcontrol system 100 of FIG. 2 and/or 3 (block 1002). For example, thecontrol signal may be injected as input signal d1 or input signal d2 ofthe control system 700 of FIG. 8.

Then, the digital signal processor selects a second location to measurethe response signal (block 1004). The digital signal processordetermines the magnitude and phase of the response of the combination ofthe first location and the second location (block 1006). For example,the magnitude and phase may be determined according to the processillustrated by the flowchart of FIG. 14. The digital signal processorthen determines if there are further locations at which an input signalcan be injected and/or at which a response signal can be measured (block1008). If there are no further locations (block 1008), control proceedsto block 1010. If there are further locations (block 1008), the digitalsignal processor selects the next input signal location (block 1018).The digital signal processor then selects the next location formeasuring the response signal (block 1020). Control then returns toblock 1002 to determine the response for the combination of input signallocation and response signal location. In an example implementation, thedigital signal processor measures the response signal at each responsesignal location for each input signal location. Accordingly, theresponse of each combination of input signal and response signallocation is determined.

After determining the response for all desired combinations of inputsignal and response signal locations, the digital signal processordetermines the most desirable combination for low frequency analysis(block 1010). For example, a first combination may result in substantialattenuation of the input signal when measured at the response signallocation for low frequency inputs. A second combination may result in asubstantial gain (or smaller attenuation) of the input signal whenmeasured at the response signal location for low frequency inputs. Forexample, the graph in FIG. 22 shows that a response labeled M04 has agreater gain than a response labeled M02, until a point labeled 2202.Accordingly, it may be desirable to measure the response of the digitalcontrol system to low frequency inputs using the second combination.Using combinations with less attenuation and/or higher gains may resultin a high signal to noise ratio in the measured response signal insteadof injecting an input signal having greater amplitude, which may resultin more than desirable disturbance of the digital control system.

Then, the digital signal processor determines the most desirablecombination for high frequency analysis (block 1012). Similar to the lowfrequency determination, the combination of input signal location andresponse signal location that results in the greatest gain or leastattenuation of the input signal may be the most desirable location.

After determining the most desirable low frequency location and the mostdesirable high frequency location, the digital signal processor injectslow frequency signals and measures the response using the combination ofinput signal location and response signal location that was selected inblock 1010 (block 1014). For example, the process of FIG. 14 may be usedto determine the response to input signals having a frequency between100 Hz and 10 kHz.

Then, the digital signal processor injects high frequency signals andmeasures the response using the combination of input signal location andresponse signal location that was selected in block 1012 (block 1016).For example, the process of FIG. 14 may be used to determine theresponse to the input signals having a frequency between 10 kHz and 1GHz. Then, the low frequency response and the high frequency responseare combined to create the frequency response for the entire analyzedfrequency spectrum (block 1018). The entire analyzed frequency spectrumresponse may be analyzed by the digital control system and/or displayedin a bode plot such as, for example, using the graphical user interfaceillustrated in FIG. 18. The process of FIG. 15 is then complete.

While the example process of FIG. 15 includes process steps to determinethe response characteristics of various injection and data measurementpoints, including determining appropriate frequency ranges for analyzingcombinations of injection and measurement points, this information mayalternatively be determined by modeling or by cycling through the entirefrequency range using each set of measurement points.

A. User Interfaces

FIG. 16 is an illustration of an example graphical user interface thatmay be provided to users of a digital control system (e.g., the digitalpower supply 100 of FIGS. 2 and/or 3). The example graphical userinterface of FIG. 16 displays parameters of interest associated with theoperation of a digital control system. A digital control system may notinclude physical points at which all parameters in a system can bemeasured. Rather, many parameters are digital values that are stored inregisters and used in computations inside of a digital signal processor.Accordingly, the example graphical user interface of FIG. 16 isconfigured to display the internal (and/or sampled external) parametersto users for analysis, troubleshooting, configuration, etc. In anexample implementation, a digital control system may periodicallyretrieve operational parameters of the control system and store thevalue in an available memory (e.g., a circular buffer). In an exampleimplementation, the control system retrieves and stores the values at arate that is a multiple of the rate at which control loops of thedigital control system operate. The stored values are then graphicallydisplayed using the graphical user interface of FIG. 16.

The example graphical user interface of FIG. 16 is configured to displaya line representing the current flowing in a power factor controller(e.g., current signal I_(PFC) measured in the PFC 106 of FIG. 3) 1514, aline representing a boost voltage ripple of an output of a power factorcontroller 1516, a line representing a current command reference current(e.g., reference current command Iref of FIG. 4) 1518, and a linerepresenting a voltage signal input to a power factor controller (e.g.,voltage signal V_(AC) of FIG. 3) 1520. The graphical user interfaceincludes a set of radio buttons 1502 that enable one or more of thedisplayed lines to be hidden from display. In alternativeimplementations, any other parameters of interest may be tracked anddisplayed using the graphical user interface of FIG. 16. Additionally,the graphical user interface may include a drop down box (or othergraphical user element) that allows users to select parameters fordisplay from among all parameters available in a digital control system.

The example graphical user interface of FIG. 16 includes a start button1504, a get trace button 1505, a decimate count 1506, a plot typeselection 1508, an x-axis scale selection 1510, and a y-axis scaleselection 1512. The start button 1504 of the illustrated example,enables a user to start and stop the display of lines. Once the starttrace button is pressed, the button changes to read “stop trace” and theselected parameters are traced and displayed in the graph of thegraphical user interface of FIG. 16. In the illustrated example, oncethe traced lines reach the right-most edge of the graph, the graphslides to the left so that the most recently traced lines are alwaysdisplayed. Alternatively, the graph may be erased once the lines reachthe right-most edge and the lines may be re-started at the left-mostedge of the graph or tracing may automatically stop when the lines reachthe right-most edge of the graph. Once the user clicks the start button1504 again (i.e., while the start button 1504 reads “stop trace”), thetrace recording and display is stopped and the lines continue to bedisplayed on the graph in the state that they were in when the startbutton 1504 was pressed.

The example get trace button 1505 causes a digital control system totransmit a stored trace of the length specified in the x-axis scaleselection 1510 and to display the trace in the graph of the graphicaluser interface of FIG. 16. For example, in the illustrated example, thex-axis selection 1510 is set to display from time 0 to 40.94milliseconds. Accordingly, in the example graphical user interface, ifthe get trace button 1505 is pressed, the digital control system will beinitialized and run for 40.94 milliseconds while the parameters ofinterest are traced. This parameter tracing will generate one graphworth of data and then stop the tracing process.

While two example methods of initiating tracing and display of systemparameters are described in the forgoing, any method of initiatingtracing and display may be used. For example, tracing initiating if asystem error occurs so that a user may see how the system responds tothe error, tracing may be initiated in response to a user command (e.g.,tracing may be imitated when an input voltage is stepped so that thestep response of the system may be analyzed), etc. In addition, thetermination of tracing may be effected as desired. For example, tracingmay be terminated when a system error occurs so that a user may view theparameters during the time leading up to the error or tracing may beterminated when the buffer is filled.

The decimate count 1506 of the illustrated example is a text box thatallows a user to input a decimate value to be applied to the trace data.If the decimate count 1506 is set to 0, no decimation is performed(i.e., every sample is collected). However, if a decimation value isinput, 1 sample is stored and displayed and then the number of samplesspecified by the decimate count 1506 are skipped (i.e., ignored). Forexample, if the decimate count 1506 is set to 1, every other sample(i.e., 1 out of 2 samples) will be stored and displayed

The plot type selection 1508 of the illustrated example allows a user topick between a single graph type (shown in FIG. 16) or a quad graph type(shown in FIG. 17). In other words, the plot type selection 1508 allowsa user to select whether each line (1514-1520) is displayed overlaidover each other (single graph type) or each line (1514-1520) isdisplayed on its own separate graph (quad graph type). While singlegraph type and quad graph type options are illustrated in the exampleplot type selection 1508, any number of graph types may be provided. Forexample, a dual graph type, a triple graph type, etc. In addition, anycombination of overlaid and separate graph types may be used. Forexample, a first graph may include two line overlaid while a secondgraph may show only a single line.

The x-axis selection 1510 allows a user to input a minimum and maximumvalue for the x-axis of the graph of the example graphical userinterface illustrated in FIG. 16. The x-axis selection 1510 additionallyincludes a reset button to reset the values to default values. While thex-axis is shown as a manually configurable range, the range mayalternatively be automatically configured by the digital control system.For example, the range may automatically be determined based on a rateat which control loops of the control system run.

The y-axis selection 1512 of the illustrated example allows a user toconfigure y-axis scale and offset for each of the displayed lines(1514-1520). Each line may have different scales and offsets dependingon the measured values and any hardware scaling that is performed.Accordingly, the y-axis selection 1512 allows a user to configure therelative ranges of each line by configuring the scale and offset value.For example, it may be desirable to display a first current signal havea peak-to-peak value of 5 Amps on the same graph and with the samerelative size as a second current signal having a peak-to-peak value of25 Amps. Accordingly, by decreasing the y-axis range of the secondcurrent signal, the relative size of the second current signal can bereduced so that the first current signal and the second current signalboth fit on a single graph and neither line is undesirably small orlarge. The y-axis selection 1512 includes a reset button to reset thevalues to default values. In addition, the y-axis selection 1512includes an auto button to allow a user to request that the systemautomatically configure the scale and offset values for each signal. Forexample, the system may set the scale and offset so that no lines arecutoff at the top or bottom of the graph and so that the lines areapproximately centered on the center of the graph of the graphical userinterface of FIG. 16.

FIG. 17 is an illustration of an example graphical user interface thatmay be provided to users of a digital control system (e.g., the digitalpower supply 100 of FIGS. 2 and/or 3). FIG. 17 is configured to displaya line representative of a voltage input to a DC to DC converter (e.g.,the voltage signal V_(BOOST) input to the DC to DC converter 110 of FIG.3) 1614, a line representative of a current input to the DC to DCconverter (e.g., the current signal I_(PRI) of FIG. 3) 1616, a linerepresentative of a reference voltage signal applied to the DC to DCconverter (e.g., the reference voltage signal Vref of FIG. 4) 1618, anda line representative of a phase command (e.g., the output of thecontroller Pm of FIG. 5) 1620. The graphical user interface of FIG. 17includes a set of radio buttons 1602 that allow a user to hide ordisplay a list of all traceable parameters.

The graphical user interface of FIG. 17 includes a start button 1604, aget trace button 1605, a decimate count 1606, a plot type selection1608, an x-axis selection 1610, and a y-axis selection 1612, which maybe similar to the start button 1504, the get trace button 1505, thedecimate count 1506, the plot type selection 1508, the x-axis selection1510, and the y-axis selection 1512. Accordingly, these features are notdescribed in further detail herein.

FIG. 18 is an illustration of an example graphical user interface thatmay be provided to users of a digital control system (e.g., the digitalpower supply 100 of FIGS. 2 and/or 3). The example graphical userinterface of FIG. 18 is configured to allow a user to adjust operatingparameters of a digital control system and to display analyticalinformation about the operation of the digital control system.

The example graphical user interface of FIG. 18 includes a control loopselection 1702, a plot data selection 1704, a coefficient configuration1706, a transfer function control 1708, aproportional-integral-derivative (PID) gain configuration 1710, apole/zero configuration 1712, a measured response evaluation display1714, a simulated response evaluation display 1716, a measured responsemagnitude plot 1718, a simulated response magnitude plot 1720, ameasured response phase plot 1722, and a simulated response phase plot1724.

The control loop selection 1702 of the illustrated example allows a userto select a desired control loop for configuration and analysis. Theexample control loop 1702 allows a user to select a PFC voltage controlloop (e.g., the control loop including the voltage loop compensator G1of FIG. 4), a PFC current control loop (e.g., the control loop includingthe regulator G2 of FIG. 4), or a DC to DC converter control loop (e.g.,the controller, G4, of FIG. 5). In addition, the control loop selection1702 includes a checkbox that allows a user to select whether the userdesires that the current coefficients in the GUI be written to the DSP(e.g., the DSP 126 of FIG. 2 and/or the DSP 244 of FIG. 3) of thecontrol loop be loaded (e.g., retrieved from the registers in which theyare currently stored).

The plot data selection 1704 of the illustrated example allows a user toselect which data is displayed on the plots (1718-1724). The exampleplot data selection 1704 allows a user to select the response of a powerstage (e.g., the PFC 106 of FIGS. 2 and/or 3), the response of acompensator (e.g., the controller pictured in the firmware diagram ofFIG. 4), the open loop response of a complete system (e.g., the openloop response for a system implemented according to the block diagram ofFIG. 8), the closed loop response of a complete system (e.g., the closedloop response for a system implemented according to block diagram ofFIG. 8).

The coefficient configuration 1706 of the illustrated example allows auser to view the controller coefficients for the control loop selectedusing the control loop selection 1702. In addition, the coefficientconfiguration 1706 may allow a user to input desired coefficients forthe controller of the control loop. The illustrated example providescoefficients for a two pole/two zero controller (e.g.,Y(n)=B0*X(n)+B1*X(n−1)+B2*X(n−2)−A1*Y(n−1)−A2*Y(n−2))

The control buttons 1708 of the illustrated example allows a user tostart and stop a transfer function analysis (e.g., a transfer functionanalysis performed according to the process of FIG. 14). For example,when the button labeled TFA is pressed, the control system measures theresponse of the control loop selected in the control loop selection 1702and plots the result specified in the plot data selection 1704 as themeasured response magnitude plot 1718 and the measured response phaseplot 1722. The control system also determines the simulated or predictedresponse of the control system to the control parameters specified byone or more of the coefficient configuration 1706, PID gain configured1710, or the pole/zero configuration 1712 and displays the simulatedresponse as the simulated response magnitude plot 1720 and the simulatedresponse phase plot 1724.

There are three ways to modify the controller coefficients of theexample digital control system described herein: (1) By directlymodifying the coefficients, (2) by modifying PID gains that cause thecoefficients to be changed, or (3) by establishing poles and zeroes thatcause the changing of coefficients to match the poles and zeros. Whenthe coefficients are modified using any one of the methods, the valuesfor the other methods can be calculated using simulated responseanalysis output and plots.

The PID gain configuration 1710 of the illustrated example allows a userto view the controller settings as PID gain values for the control loopselected using the control loop selection 1702. In addition, the PIDgain configuration 1710 may allow a user to input desired PID gainvalues for the controller of the control loop. For example, if a userchanges a value in the coefficient configuration 1706, the PID gain 1710will be updated to show the corresponding PID gain values and viceversa.

The pole/zero configuration 1712 of the illustrated example allows auser to view the controller settings as a gain and pole and zero valuesfor the control loop selected using the control loop selection 1702. Inaddition, the pole/zero configuration 1712 may allow a user to inputdesired pole and zero values for the controller of the control loop. Forexample, if a user changes a value in the coefficient configuration1706, the pole/zero configuration 1712 will be updated to show thecorresponding gain, pole, and zero values and vice versa.

The measured response display 1714 of the illustrated example shows thebandwidth, gain margin, and phase margin calculated from the measuredresponse data. The values of the measured response display 1714 may bedetermined by analyzing the magnitude and phase values generated by theprocess of FIG. 14.

The simulated response display 1716 of the illustrated example shows thebandwidth, gain margin, and phase margin for the simulated response ofselected control system parameters when combined with the measured plantdata. The values of the simulated response display 1716 may bedetermined from

FIG. 19 is an illustration of an example graphical user interface thatmay be provided to users of a digital control system (e.g., the digitalpower supply 100 of FIGS. 1 and/or 2). The example graphical userinterface of FIG. 19 is configured to allow a user to adjust operatingparameters of a digital control system and to display analyticalinformation about the operation of the digital control system.

The example graphical user interface of FIG. 19 includes a control loopselection 1802, a plot data selection 1804, a coefficient configuration1806, a transfer function control 1808, aproportional-integral-derivative (PID) gain configuration 1810, apole/zero configuration 1812, a measured response display 1814, asimulated response display 1816, a measured response magnitude plot1818, a simulated response magnitude plot 1820, a measured responsephase plot 1822, and a simulated response phase plot 1824, which may besimilar to the control loop selection 1702, the plot data selection1704, the coefficient configuration 1706, the transfer function control1708, the proportional-integral-derivative (PID) gain configuration1710, the pole/zero configuration 1712, the measured response display1714, the simulated response display 1716, the measured responsemagnitude plot 1718, the simulated response magnitude plot 1720, themeasured response phase plot 1722, and the simulated response phase plot1724 of FIG. 18. However, in FIG. 19 illustrates an example graphicaluser interface having different settings selected for the control loopselection 1802 and the plot data selection 1804 than the correspondingsettings in the graphical user interface of FIG. 18. As shown in thegraphical user interface of FIG. 19, the example graphical userinterface includes a nyquist plot of a closed loop response instead of abode plot for displaying the measured response phase plot 1822 and thesimulated response phase plot 1824.

While the forgoing description and figures illustrate graphical userinterfaces having example graphic user interface elements, any type ofgraphical user interface elements may be used. For example, severalcheck boxes may be substituted for a radio button, clickable text may besubstituted for a button, a drop down menu may be substituted for ascroll bar, etc. In addition, the graphical user interface may beimplemented partially or fully as a command line interface in which auser may input commands at a command prompt and receive response valuesand parameters. In addition, while the example graphical user interfacesare provided as a frontend to a system implemented using Matlab®, thegraphical user interfaces may be implemented using any type of userinterface such as, for example, a webpage, a compiled program graphicaluser interface, etc. Any type of graphical user interface elements maybe used such as, for example, any combination of checkboxes, drop downlists, text boxes, buttons, radio buttons, icons, scroll bars, etc. maybe used.

B. Example Computer

FIG. 23 is a block diagram of an example computer 2100 capable ofexecuting the processes illustrated by the flowcharts in FIGS. 8, 9, 10,11, 12, 13, and 14 to implement the apparatus and methods disclosedherein.

The system 2100 of the instant example includes a processor 2112 such asa general purpose programmable processor. The processor 2112 includes alocal memory 2114, and executes coded instructions 2116 present inrandom access memory 2118, coded instruction 2117 present in the readonly memory 2120, and/or instructions present in another memory device.The processor 2112 may execute, among other things, the machine-readableinstructions represented in FIGS. 8, 9, 10, 11, 12, 13, and 14. Theprocessor 2112 may be any type of processing unit, such as amicroprocessor from the Intel® Centrino® family of microprocessors, theIntel® Pentium® family of microprocessors, the Intel® Itanium® family ofmicroprocessors, and/or the Intel XScale® family of processors. Ofcourse, other processors from other families are also appropriate.

The processor 2112 is in communication with a main memory including avolatile memory 2118 and a non-volatile memory 2120 via a bus 2125. Thevolatile memory 2118 may be implemented by Synchronous Dynamic RandomAccess Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUSDynamic Random Access Memory (RDRAM) and/or any other type of randomaccess memory device. The non-volatile memory 2120 may be implemented byflash memory and/or any other desired type of memory device. Access tothe main memory 2118, 2120 is typically controlled by a memorycontroller (not shown) in a conventional manner.

The computer 2100 also includes a conventional interface circuit 2124.The interface circuit 2124 may be implemented by any type of well knowninterface standard, such as an Ethernet interface, a universal serialbus (USB), and/or a third generation input/output (3GIO) interface.

One or more input devices 2126 are connected to the interface circuit2124. The input device(s) 2126 permit a user to enter data and commandsinto the processor 2112. The input device(s) can be implemented by, forexample, a keyboard, a mouse, a touchscreen, a track-pad, a trackball,isopoint and/or a voice recognition system.

One or more output devices 2128 are also connected to the interfacecircuit 2124. The output devices 2128 can be implemented, for example,by display devices (e.g., a liquid crystal display, a cathode ray tubedisplay (CRT), a printer and/or speakers). The interface circuit 2124,thus, typically includes a graphics driver card.

The interface circuit 2124 also includes a communication device such asa modem or network interface card to facilitate exchange of data withexternal computers via a network (e.g., an Ethernet connection, adigital subscriber line (DSL), a telephone line, coaxial cable, acellular telephone system, etc.).

The computer 2100 also includes one or more mass storage devices 2130for storing software and data. Examples of such mass storage devices2130 include floppy disk drives, hard drive disks, compact disk drivesand digital versatile disk (DVD) drives.

Although this patent discloses example systems including software orfirmware executed on hardware, it should be noted that such systems aremerely illustrative and should not be considered as limiting. Forexample, it is contemplated that any or all of these hardware andsoftware components could be embodied exclusively in hardware,exclusively in software (e.g., Matlab®), exclusively in firmware or insome combination of hardware, firmware and/or software. Accordingly,while the above specification described example systems, methods andarticles of manufacture, persons of ordinary skill in the art willreadily appreciate that the examples are not the only way to implementsuch systems, methods and articles of manufacture. Therefore, althoughcertain example methods, apparatus and articles of manufacture have beendescribed herein, the scope of coverage of this patent is not limitedthereto. On the contrary, this patent covers all methods, apparatus andarticles of manufacture fairly falling within the scope of the appendedclaims either literally or under the doctrine of equivalents.

1. A method for controlling a digital power supply, the methodcomprising: receiving an alternating current input from an input source;processing the alternating current input with a power factor controllerhaving a first stage and a second stage; controlling the power factorcontroller by: receiving a first current signal flowing in the firststage of the power factor controller; receiving a second current signalflowing in the second stage of the power factor controller; determininga difference between the first current signal and the second currentsignal; determining if the magnitude of a measured current signal isabove a predetermined threshold; activating an integrator to integratethe difference when the magnitude of the measured current signal isabove a predetermined threshold; and outputting a first control signaland a second control signal to the power factor controller based on theoutput of the integrator.
 2. A method as defined in claim 1, furthercomprising generating the first control signal using a first controlloop and generating the second control signal using a second controlloop.
 3. A method as defined in claim 2, wherein outputting the firstcontrol signal and the second control signal comprises adding the outputof the integrator to the first control signal.
 4. A method as defined inclaim 1, wherein activating the integrator comprises causing theintegrator to accumulate values.
 5. A method as defined in claim 1,further comprising deactivating the integrator when the magnitude of themeasured current signal is below the predetermined threshold.
 6. Amethod as defined in claim 5, wherein, when the integrator isdeactivated, the integrator continues to output a value corresponding toa state of the integrator immediately prior to deactivating theintegrator.
 7. A method as defined in claim 1, wherein the power factorcontroller has a third stage and controlling the power factor controllerfurther comprises receiving a third current signal flowing in the thirdstage of the power factor controller.
 8. A method as defined in claim 7,wherein determining the difference between the first current signal andthe second current signal comprises at least one of: determining a oneof the first current signal, the second current signal, or the thirdcurrent signal has the greatest magnitude and controlling the powerfactor controller to reduce the one of the first current signal, thesecond current signal or the third current signal that has the greatestmagnitude; determining an average of the first current signal, thesecond current signal, and the third current signal, increasing ones ofthe first current signal, the second current signal and the thirdcurrent signal that are less than the average, and decreasing ones ofthe first current signal, the second current signal, and the thirdcurrent signal that are greater than the average; or determining a oneof the first current signal, the second current signal, or the thirdcurrent signal has the smallest magnitude and controlling the powerfactor controller to increase the one of the first current signal, thesecond current signal or the third current signal that has the greatestmagnitude.
 9. A method as defined in claim 7, further comprising:generating the first control signal using a first control loop;generating the second control signal using a second control loop; andgenerating a third control signal using a third control loop.
 10. Amethod as defined in claim 9, wherein outputting the first controlsignal and the second control signal comprises: subtracting the outputof the integrator from the first current signal to generate a firstdifference signal; subtracting the output of the integrator from thesecond control signal to generate a second difference signal;subtracting the output of the integrator from the third control signalto generate a third difference signal; combining the first differencesignal and the first control signal; combining the second differencesignal and the second control signal; and combining the third differencesignal and the third control signal.
 11. A method as defined in claim 1,wherein the measured current signal is at least one of the first currentsignal, the second current signal, or a combination of the first currentsignal and the second current signal.
 12. A system comprising: a voltageinput source to output an alternating current voltage signal; a digitalpower supply to: receive the alternating current voltage signal; processthe alternating current voltage signal with a direct current to DCconverter and a power factor controller having a first stage and asecond stage to generate an output signal; receive a first currentsignal flowing in the first stage of the power factor controller;receive a second current signal flowing in the second stage of the powerfactor controller; determine a difference between the first currentsignal and the second current signal; determine if the magnitude of ameasured current signal is above a predetermined threshold; activate anintegrator to integrate the difference when the magnitude of themeasured current signal is above a predetermined threshold; and output afirst control signal and a second control signal to the power factorcontroller based on the output of the integrator; a workstation to: sendthe predetermined threshold to the digital power supply; a poweredapparatus to receive the output signal and to use the output signal topower the powered apparatus.
 13. A system as defined in claim 12,wherein the digital power supply is further to generate the firstcontrol signal using a first control loop and generating the secondcontrol signal using a second control loop.
 14. A system as defined inclaim 13, wherein outputting the first control signal and the secondcontrol signal comprises adding the output of the integrator to thefirst control signal.
 15. A system as defined in claim 12, whereinactivating the integrator comprises causing the integrator to accumulatevalues.
 16. A system as defined in claim 12, wherein the digital powersupply is further to deactivate the integrator when the magnitude of theinput voltage is below the predetermined threshold.
 17. A system asdefined in claim 16, wherein, when the integrator is deactivated, theintegrator continues to output a value corresponding to a state of theintegrator immediately prior to deactivating the integrator.
 18. Amachine-readable medium storing machine-readable instructions that, whenexecuted, cause a machine to: receive an alternating current input froma input source; process the alternating current input with a powerfactor controller having a first stage and a second stage; control thepower factor controller by: receive a first current signal flowing inthe first stage of the power factor controller; receive a second currentsignal flowing in the second stage of the power factor controller;determine a difference between the first current signal and the secondcurrent signal; determine if the magnitude of voltage measured currentsignal is above a predetermined threshold; activate an integrator tointegrate the difference when the magnitude of the measured currentsignal is above a predetermined threshold; and output a first controlsignal and a second control signal to the power factor controller basedon the output of the integrator.
 19. A machine-readable medium asdefined in claim 18, wherein the machine-readable instructions, whenexecuted, further cause a machine to generate the first control signalusing a first control loop and generate the second control signal usinga second control loop.
 20. A machine-readable medium as defined in claim19, wherein outputting the first control signal and the second controlsignal comprises adding the output of the integrator to the firstcontrol signal.